const request = require('../../utils/Interface.js')

// 添加
export function userInsert(data) {
  return request.doRequest(
    '/miewen/mini/user/insert',
    'GET',
    data
  )
}

// 移除
export function userDelete(data) {
  return request.doRequest(
    '/miewen/mini/user/delete',
    'GET',
    data
  )
}

// 注销
export function cancellation(data) {
  return request.doRequest(
    '/miewen/mini/user/cancellation',
    'GET',
    data
  )
}

// 修改
export function userUpdate(data) {
  return request.doRequest(
    '/miewen/mini/user/update',
    'POST',
    data
  )
}

// 查询
export function userFindAll(data) {
  return request.doRequest(
    '/miewen/mini/user/findAll',
    'GET',
    data
  )
}

// 查询
export function userFind(data) {
  return request.doRequest(
    '/miewen/mini/user/find',
    'GET',
    data
  )
}

// 照片文件上传
export function upload(data) {
  return request.doRequest(
    '/miewen/mini/tool/upload',
    'POST',
    data
  )
}

// 根据文件id下载文件
export function download(data) {
  return request.doRequest(
    '/miewen/mini/tool/downloadBase64/id',
    'GET',
    data
  )
}
